<?
require 'global.php';

$id=0; if (isset($_GET["id"])) $id = clean($_GET["id"]);
$table=''; if (isset($_GET["table"])) $table = clean($_GET["table"]);

//pre($_GET);
$k=0;

if($id==0) { echo $k; exit; }

if($table=='wishlist'){
	$gee=$wishlist;
	if($gee->delete($id)) $k=1;
}
if($table=='address_book'){
	$gee=new DB(Taddress_book,$conn);
	if($gee->delete($id)) $k=1;
}

if($table=='order_service'){
    $gee=new DB(Torder_service,$conn);
    if($gee->delete($id)) $k=1;
}
echo $k;

?>